<template>
  <div class="fixed">
    <router-view />
    <van-tabbar v-model="active" :route="true">
      <van-tabbar-item :to="{ name: 'Banner' }" icon="home-o">
        首页
      </van-tabbar-item>
      <van-tabbar-item :to="{ name: 'Banner' }" icon="search"
        >搜索</van-tabbar-item
      >
      <van-tabbar-item :to="{ name: 'MAbout' }" icon="friends-o"
        >个人</van-tabbar-item
      >
      <van-tabbar-item :to="{ name: 'MAbout' }" icon="setting-o"
        >设置</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "Mobile",
  data() {
    return {
      active: 0,
    };
  },
  methods: {},
};
</script>

<style scoped lang="less">
html {
  font-size: 26.666666667vw;
}
body {
  font-size: 16px;
}
.fixed {
  .van-tabbar-item--active {
    color: #42b983;
  }
}
</style>
